import React from "react"
import SearchInput from "../../SearchInput"
export default class CommunityHead extends React.Component{

    constructor(){
        super();
        this.state = {
            inputContent: '搜索'
        }
    }
    backLastPage(){
        window.history.back();
    }
    searchKeyWordFun(kewyWord){

    }
    render (){
        let { inputContent } = this.state;
        return (
            <div className="home-header-container">
                <div className="home-header-left" onClick={this.backLastPage.bind(this)}>
                    <i className="iconfont icon-zuo"></i>
                </div>
                <div className="roommate-header-middle">
                    <SearchInput inputContent={inputContent} 
                    searchKeyWordFun={this.searchKeyWordFun.bind(this)}
                    />
                </div>
                <div className="home-header-right">
                    <i className="iconfont icon-xiaoxi"></i>
                </div>
            </div>
        )
    }
}
